package com.hrt.datasender.datadao.model;

import com.btcode.db.fieldtype.FieldType;
import com.btcode.orm.model.BaseModel;
import com.btcode.orm.model.Field;
import com.btcode.orm.model.IField;

public class BcSiteModel extends BaseModel {

    private static final long serialVersionUID = 1L;

    public static String tableName = "BC_SITE";

    public static IField id = new Field(BcSiteModel.class, "ID", FieldType.String, true);

    public static IField name = new Field(BcSiteModel.class, "NAME", FieldType.String, false);

    public static IField systemType = new Field(BcSiteModel.class, "SYSTEM_TYPE", FieldType.String, false);

    public void setId(String value) {
        setFieldValue(id.getFieldName(), value);
    }

    public String getId() {
        Object value = getFieldValue(BcSiteModel.id.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setName(String value) {
        setFieldValue(name.getFieldName(), value);
    }

    public String getName() {
        Object value = getFieldValue(BcSiteModel.name.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public void setSystemType(String value) {
        setFieldValue(systemType.getFieldName(), value);
    }

    public String getSystemType() {
        Object value = getFieldValue(BcSiteModel.systemType.getFieldName());
        String result = getValueConver().converToString(value);
        return result;
    }

    public String getTableName() {
        return tableName;
    }

    public boolean isNeedCache() {
        return false;
    }

}